import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/salOrder',
    method: 'get',
    params,
  })
}

export function doAdd(data) {
  return request({
    url: '/salOrder',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/salOrder',
    method: 'put',
    data,
  })
}

export function doDelete(id) {
  return request({
    url: '/salOrder/' + id,
    method: 'delete',
  })
}

export function doSubmit(data) {
  return request({
    url: '/salOrder/submit',
    method: 'put',
    data,
  })
}

export function doRevoke(data) {
  return request({
    url: '/salOrder/revoke',
    method: 'put',
    data,
  })
}

export function getOneData(params) {
  return request({
    url: '/salOrder/one',
    method: 'get',
    params,
  })
}
